<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>jquery插件封装</title>
	</head>
	<body>
		<p id="text">你好啊</p>
		
		<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
		<script src="js/jquery.highLight.js"></script>
		<script type="text/javascript">
			$(function(){
				$("#text").highLight({
					background:'black',
					color:'lightblue'
				});
			});
			//覆盖插件暴露的方法
			$.fn.highLight.format = function(ele){
				ele.css("text-align",'center');
			}
		</script>
	</body>
</html>
